package com.vito.dcs.water.waterAlarm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.base.model.DataGrid;
import com.vito.dcs.water.waterAlarm.dao.WaterAlarmMapper;
import com.vito.dcs.water.waterAlarm.model.WaterAlarmModel;
import com.vito.dcs.water.waterAlarm.service.WaterAlarmService;

/**
 * 报警监控
 * @author lyhao
 *
 */
@Service
public class WaterAlarmServiceImpl implements WaterAlarmService {
	
	@Autowired
	private WaterAlarmMapper waterAlarmMapper;
	
	@Override
	public DataGrid<WaterAlarmModel> queryWaterAlarmByPage(WaterAlarmModel waterAlarmModel){
		DataGrid<WaterAlarmModel> dg = new DataGrid<WaterAlarmModel>();
		dg.setRows(waterAlarmMapper.queryWaterAlarmByPage(waterAlarmModel));
		dg.setTotal(waterAlarmModel.getTotal());
		return dg;
	}

}